//
//  FBDevicesList.h
//  EquesCat
//
//  Created by Chun Hung Cheung on 2024/12/17.
//

#import <Foundation/Foundation.h>
#import <EquesBusiness/BGFMDB.h>
NS_ASSUME_NONNULL_BEGIN

@interface FBDevicesList : NSObject
/*
     {
        appId = 1019;
        bid = 85080c3c0944ae3620781b40b275b264;
        brandId = 0;
        capability =             {
         cloud =                 {
             status = open;
         };
         cloudInfo =                 {
             favoriteLimit = 100;
             favoriteSize = 1G;
             length = 3;
             lengthUnit = month;
             rolloverDay = 15;
         };
         control = 0;
         "default_rollover_day" = 3;
         face =                 {
             status = open;
         };
         faceapi = baidu;
         many = 0;
         shadow = 1;
         share = 1;
         "show_pir_warn" = 0;
         sip = 0;
         voiceScenario =                 (
             "low_power",
             "wrong_pw",
             ring
         );
        };
        defaultNick = "\U53ef\U89c6\U5bf9\U8bb2\U667a\U80fd\U9501";
        "device_class" = 11;
        group = "";
        intercom = 1;
        "is_share" = 0;
        name = "E0D31A7FEABD-85080c3c";
        nick = "BlM\U53ef\U89c6\U667a\U80fd\U9501";
        role = 1019;
        speech = 1;
    }
 */

/*用户名*/
@property(nonatomic,copy) NSString *userName;
/*设备的sn*/
@property(nonatomic,copy) NSString *name;
/*设备类型*/
@property(nonatomic,assign) int role;
/*设备bid*/
@property(nonatomic,copy) NSString *bid;
@property(nonatomic,copy) NSString *brandId;
/*设备的功能集*/
@property(nonatomic,strong) NSDictionary *capability;
@property(nonatomic,assign) int control;
/*默认媒体数据存储天数 */
@property(nonatomic,assign) int default_rollover_day;
@property(nonatomic,strong) NSDictionary *face;
@property(nonatomic,copy) NSString *faceapi;
@property(nonatomic,assign) int many;
@property(nonatomic,assign) int shadow;
/*设备是否支持分享 1支持。0不支持*/
@property(nonatomic,assign) int share;
@property(nonatomic,assign) int show_pir_warn;
@property(nonatomic,assign) int sip;
@property(nonatomic,strong) NSArray *voiceScenario;
/*设备的状态 0离线 1在线 2睡眠*/
@property(nonatomic,assign) int status;
@property(nonatomic,copy) NSString *defaultNick;
/*设备昵称 */
@property(nonatomic,copy) NSString *nick;

@property(nonatomic,assign) int device_class;
@property(nonatomic,assign) int intercom;
/*设备是否是分享设备 1是。0不是*/
@property(nonatomic,assign) int is_share;
@property(nonatomic,assign) int speech;
@property(nonatomic,assign) int remoteupg;

/*存储上一次手动喂食的时间*/
@property(nonatomic,assign) NSTimeInterval interval;
/*存储上一次查看喂食记录的时间*/
@property(nonatomic,assign) NSTimeInterval last_see_record;
/*存储上一次查看喂食告警的时间*/
@property(nonatomic,assign) NSTimeInterval last_see_alarm;
/*设备的旋转角度
 0/3 顺时针 90度
 1/2 逆时针 90度
 4 顺时针180度
 5 不旋转
*/
@property(nonatomic,assign) int camera_id;
/*供电模式 0常供电 1电池*/
@property(nonatomic,assign) int power_mode;
/*wifi名称*/
@property(nonatomic,copy) NSString *wifi_ssid;
/*wifi 等级*/
@property(nonatomic,copy) NSString *wifi_level;
/*wifi db值*/
@property(nonatomic,copy) NSString *wifi_rssi;
/*品牌ID*/
@property(nonatomic,assign) int brand_id;
/*设备版本*/
@property(nonatomic,copy) NSString *vnum;
/*设备mcu版本*/
@property(nonatomic,copy) NSString *usb_vnum;
/*出图宽*/
@property(nonatomic,assign) int videocall_width;
/*出图高*/
@property(nonatomic,assign) int videocall_height;
/*设备功能集合*/
@property(nonatomic,copy) NSString *function_support;
/*免打扰开始时间*/
@property(nonatomic,copy) NSString *disturb_start_time;
/*免打扰结束时间*/
@property(nonatomic,copy) NSString *disturb_end_time;
/*免打扰开关*/
@property(nonatomic,assign) int disturb_status;
/*喂食播放语音开关*/
@property(nonatomic,assign) int voice_status;
/*喂食播放语音次数*/
@property(nonatomic,assign) int voice_count;
/*喂食播放语音类型 0默认 1自定义录音*/
@property(nonatomic,assign) int voice_index;
/*喂食录像/抓拍打开状态 0关 1开*/
@property(nonatomic,assign) BOOL alarm_enable;
/*喂食时录像/抓拍模式 0抓拍1张 1录像*/
@property(nonatomic,assign) int alm_mod;
/*喂食时录像长度 5 10 15秒*/
@property(nonatomic,assign) int video_time;

/*本地记录 mcu升级状态*/
@property(nonatomic,assign) int mcu_upg_status;

/*是否支持多摄 是否多摄：1、2、4 双摄， 3、5 三摄， 其他单摄*/
@property(nonatomic,assign) int dual_camera;
/*是否支持app主动唤醒开锁*/
@property(nonatomic,assign) int flexible_unlock;
/*是否支持1支持udp 0tcp*/
@property(nonatomic,assign) int netType ;

/*抓拍角度：0和3、旋转90度；4、旋转180度；5、不旋转；其他旋转270度*/
@property(nonatomic,assign) int capture_rotate;

/*门内和门外下摄像旋转角度：无值、0和3、旋转90度；4、旋转180度；5、不旋转；其他旋转270度*/
@property(nonatomic,assign) int sub_camera_id;
/*支持双向对讲*/
@property(nonatomic,assign) int toWayVideo;
/*支持语音留言*/
@property(nonatomic,assign) int is_support_voice;
/*双向视频尺寸*/
@property(nonatomic,copy) NSString *inside_call_ppi;
/*支持庭院锁*/
@property(nonatomic,assign) int lock_type;

/*call_spacing 呼叫后延时 X秒后不挂断*/
@property(nonatomic,assign) int call_spacing;

/*1哨兵报警 2全天监控*/
@property(nonatomic,assign) int aov_type;
/*临时密码*/
@property(nonatomic,assign) int temporary;
/*电池电量*/
@property(nonatomic,assign) int bat_lvl;
/*是否是室内来电*/
@property(nonatomic,assign) int app_call;
/*是否显示用户管理*/
@property(nonatomic,assign) int lkmang;
/*是否支持多锁控升级*/
@property(nonatomic,assign) int lck_ota;
@property(nonatomic,assign) int call_rtc;
/*不支持保活*/
@property(nonatomic,assign) int no_alive;
@property(nonatomic,assign) int is_uac;
@property(nonatomic,copy) NSString *bssid;
/*设备支持保活*/
@property(nonatomic,assign) int keep_alive;
/*VL2A锁控升级状态*/
@property(nonatomic,assign) int usb_upgrad;
/*视频格式*/
@property(nonatomic,copy) NSString *video_f;
@property(nonatomic,copy) NSString *ip;

/*工作模式*/
@property(nonatomic,assign) int work_mode;
@property(nonatomic,assign) int lcd_timeout;
@property(nonatomic,copy) NSString *alive_start_time;
@property(nonatomic,copy) NSString *alive_stop_time;

//智能锁安全密码
@property(nonatomic, assign)BOOL sercurityStatus;
@property(nonatomic, copy)NSString *sercurityCode;

+ (id)FBDevicesListWithdict:(NSDictionary *)dict;



@end

NS_ASSUME_NONNULL_END
